package com.york.jobmew.circle.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.york.jobmew.circle.api.common.PageResult;
import com.york.jobmew.circle.api.req.GetShareMomentReq;
import com.york.jobmew.circle.api.req.RemoveShareMomentReq;
import com.york.jobmew.circle.api.req.SaveMomentCircleReq;
import com.york.jobmew.circle.api.vo.ShareMomentVO;
import com.york.jobmew.circle.server.entity.po.ShareMoment;

/**
 * 动态信息 服务实现类 ShareMomentServiceImpl
 * 发布动态
 */
public interface ShareMomentService extends IService<ShareMoment> {

    /**
     * 保存动态
     *
     * @param req
     * @return
     */
    Boolean saveMoment(SaveMomentCircleReq req);

    /**
     * 获取动态信息
     *
     * @param req
     * @return
     */
    PageResult<ShareMomentVO> getMoments(GetShareMomentReq req);

    /**
     * 删除动态信息
     *
     * @param req
     * @return
     */
    Boolean removeMoment(RemoveShareMomentReq req);

    /**
     * 给动态信息添加回复数量
     *
     * @param id
     * @param count
     */
    void incrReplyCount(Long id, int count);

}
